const getMenus = () => [
  {
    name: 'access',
    icon: 'Lock',
    title: '权限管理',
    full: false,
    children: [
      {
        name: 'user',
        icon: 'User',
        title: '用户列表',
        permission: 'user.findAll',
        full: false,
        children: []
      },
      {
        name: 'role',
        icon: 'Avatar',
        title: '角色列表',
        permission: 'role.findAll',
        full: false,
        children: []
      },
      {
        name: 'permission',
        icon: 'Warning',
        title: '权限列表',
        permission: 'permission.findAll',
        full: false,
        children: []
      }
    ]
  },
  {
    name: 'css',
    icon: 'Eleme',
    title: 'CSS效果',
    full: false,
    children: [
      {
        name: 'static-css-hover',
        icon: 'Link',
        title: 'Hover.css',
        permission: 'static-css-hover',
        full: false,
        children: []
      },
      {
        name: 'static-css-transition',
        icon: 'Link',
        title: '过渡效果',
        permission: 'static-css-transition',
        full: false,
        children: []
      },
      {
        name: 'static-css-loading',
        icon: 'Link',
        title: '加载效果',
        permission: 'static-css-loading',
        full: false,
        children: []
      }
    ]
  },
  {
    name: 'test-full',
    icon: 'Link',
    title: '可视化大屏',
    permission: 'test-full',
    full: true,
    children: []
  },
  {
    name: 'test-vue',
    icon: 'Eleme',
    title: 'Vue功能测试',
    full: false,
    children: [
      {
        name: 'test-vue-attrs',
        icon: 'Link',
        title: '测试透传attrs',
        permission: 'test-vue-attrs',
        full: false,
        children: []
      }
    ]
  },
  {
    name: 'test-vue-project',
    icon: 'Eleme',
    title: 'Vue项目测试',
    full: false,
    children: [
      {
        name: 'test-vue-project-todo',
        icon: 'Link',
        title: 'todo项目',
        permission: 'test-vue-project-todo',
        full: false,
        children: []
      }
    ]
  },
  {
    name: 'test-vueuse',
    icon: 'Eleme',
    title: 'VueUse测试',
    full: false,
    children: [
      {
        name: 'test-vueuse-use-preferred-dark',
        icon: 'Link',
        title: 'usePreferredDark',
        permission: 'test-vueuse-use-preferred-dark',
        full: false,
        children: []
      },
      {
        name: 'test-vueuse-use-preferred-languages',
        icon: 'Link',
        title: 'usePreferredLanguages',
        permission: 'test-vueuse-use-preferred-languages',
        full: false,
        children: []
      },
      {
        name: 'test-vueuse-use-draggable',
        icon: 'Link',
        title: 'useDraggable',
        permission: 'test-vueuse-use-draggable',
        full: false,
        children: []
      }
    ]
  }
]

export default [
  {
    url: '/mock-api/menus',
    method: 'get',
    response() {
      return {
        status: true,
        message: 'success',
        code: 0,
        data: getMenus()
      }
    }
  }
]
